/*
 * Store student accommodation preference
 */

package com.spartancoder.accommodation.beans;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author andrei
 */
public class StudentPreferenceBean {
	
	private int preferenceId, sessionId, studentId1, studentId2;

	public void fill( ResultSet rs ) throws SQLException {
		setPreferenceId(rs.getInt("preference_id"));
		setSessionId(rs.getInt("session_id"));
		setStudentId1(rs.getInt("student_id1"));
		setStudentId2(rs.getInt("student_id2"));
	}
	
	public int getPreferenceId() {
		return preferenceId;
	}

	public void setPreferenceId(int preferenceId) {
		this.preferenceId = preferenceId;
	}

	public int getSessionId() {
		return sessionId;
	}

	public void setSessionId(int sessionId) {
		this.sessionId = sessionId;
	}

	public int getStudentId1() {
		return studentId1;
	}

	public void setStudentId1(int studentId1) {
		this.studentId1 = studentId1;
	}

	public int getStudentId2() {
		return studentId2;
	}

	public void setStudentId2(int studentId2) {
		this.studentId2 = studentId2;
	}	
}
